package com.ds.system.topbar;

import com.ds.config.ResultModel;
import com.ds.config.TreeListResultModel;
import com.ds.enums.db.MethodChinaName;
import com.ds.esd.custom.annotation.*;
import com.ds.esd.tool.ui.enums.HAlignType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/system/")
@MethodChinaName(cname = "topbar")
public class TopBar {


    @UIAnnotation(left = "0.7em")
    @ImageAnnotation(width = "3.6em", height = "3.6em")
    String logo = "/img/staticjds.gif";

    @LabelAnnotation(hAlign = HAlignType.center, fontColor = "#FFFFFF", fontSize = "18px")
    @UIAnnotation(left = "4.5em", width = "3.8em", height = "1.2em")
    String logoName = "CodeBee";

    @UIAnnotation(left = "10.6em", top = "0.75em", width = "3em", height = "2.2em")
    @IconAnnotation(imageClass = "spafont spa-icon-login", iconFontSize = "2em")
    String userIcon;


    @GalleryViewAnnotation
    TreeListResultModel<List<TopBarMenu>> galleryMenu;

    @DivAnnotation
    ResultModel<UserMenu> userMenu;

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getLogoName() {
        return logoName;
    }

    public void setLogoName(String logoName) {
        this.logoName = logoName;
    }

    public ResultModel<UserMenu> getUserMenu() {
        return userMenu;
    }

    public void setUserMenu(ResultModel<UserMenu> userMenu) {
        this.userMenu = userMenu;
    }

    public String getUserIcon() {
        return userIcon;
    }

    public void setUserIcon(String userIcon) {
        this.userIcon = userIcon;
    }

    public TreeListResultModel<List<TopBarMenu>> getGalleryMenu() {
        return galleryMenu;
    }

    public void setGalleryMenu(TreeListResultModel<List<TopBarMenu>> galleryMenu) {
        this.galleryMenu = galleryMenu;
    }

}
